//
//  LPSearchContentView.h
//  ShangHaiHuDongApp
//
//  Created by 刘应平 on 2017/8/21.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import <UIKit/UIKit.h>

@class LPSearchContentView;
@protocol LPSearchContentViewDelegate <NSObject>

- (void)LPSearchContentViewDelegateWithView:(LPSearchContentView *)view string:(NSString *)string clickReturnSeatch:(BOOL)clickReturn;
- (void)LPSearchContentViewDelegate_clickSearch;

@end
@interface LPSearchContentView : UIView
- (instancetype)initWithFrame:(CGRect)frame;
/**  text  */
@property (strong, nonatomic) UITextField  *searchTextField;
/** 代理  */
@property (weak, nonatomic) id<LPSearchContentViewDelegate>  delegate;
/*
 
 #pragma mark - LPSearchContentViewDelegate
 - (void)LPSearchContentViewDelegateWithView:(LPSearchContentView *)view string:(NSString *)string clickReturnSeatch:(BOOL)clickReturn{
 self.keyWord = string;
 if (clickReturn == YES) {
 if (self.keyWord.length == 0) {
 [YJProgressHUD showSuccess:@"请输入搜索内容" inview:self.view];
 return;
 }
 }else{
 if (self.keyWord.length == 0) {
 return;
 }
 
 }
 
 [self getData];
 
 }
 
 
 - (void)LPSearchContentViewDelegate_clickSearch{
 if (self.keyWord.length == 0) {
 [YJProgressHUD showSuccess:@"请输入搜索内容" inview:self.view];
 return;
 }
 [self getData];
 
 }
 
 */
@end
